﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers {
    import net.wooga.pets.events.*;
    import mx.utils.*;
    import org.robotlegs.mvcs.*;
    import net.wooga.pets.services.*;

    public class CallExternalCommand extends Command {

		[Inject]
        public var event:InfoEvent;
		[Inject]
        public var extInterface:ExtInterfaceService;

        override public function execute():void{
            var _local1:Array = (this.event.info as Array);
            l(("i call external interface method: " + this.event.id));
            if (_local1){
                l(("i call external interface param: " + ObjectUtil.toString(_local1)));
            };
            this.extInterface.callJS(this.event.id, (this.event.info as Array));
        }

    }
}//package net.wooga.pets.controllers 
